package com.aspose.cells.a.d.a.b;

import java.io.IOException;

public class zj extends zi {
   private int b;
   private int c;
   private int d;
   private boolean e = false;
   byte[] a;

   public zj(byte[] var1) {
      this.e = true;
      this.a = var1;
   }

   public int a() {
      return 1;
   }

   public int c() {
      return 20 + this.a.length + (4 - this.a.length % 4) % 4;
   }

   public int a(com.aspose.cells.a.d.a.zb var1) throws IOException {
      var1.b(this.b);
      var1.b(this.c);
      var1.b(this.e ? 0 : (this.d >> 19 & 31) * this.b);
      var1.b(this.d);
      var1.b(this.e ? 1 : 0);
      var1.a(this.a);

      for(int var2 = (4 - this.a.length % 4) % 4; var2 > 0; --var2) {
         var1.g(0);
      }

      return 20 + this.a.length + (4 - this.a.length % 4) % 4;
   }
}
